﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Edit.ascx.vb" Inherits="Control_TinMuaXe_Edit" %>
<%@ Register TagPrefix="aspNewControls" Namespace="NewControls" %>
<%@ Register Assembly="ValidationTextBox" Namespace="ValidationTextBox.CustomControls"
    TagPrefix="cc1" %>
<%@ Register Assembly="ValidationDropdownlist" Namespace="ValidationDropdownlist.CustomControls"
    TagPrefix="cc2" %>
 <script type="text/javascript" >

     $(function () {
         $(".TextBox:first").focus();
         $("#<%= btnSave.ClientID %>").click(function () {
             if (validateFormInputs() == true) {
                 return true;
             } else {
                 return false;
             };
         });



         $("#<%= chkThayDoiThongTin.ClientID %>").click(function () {

             if ($(this).attr("checked") == true) {

                 $("#<%= txtDiaChi.ClientID %>").removeAttr("disabled");

                 $("#<%= ddlKhuVuc.ClientID %>").removeAttr("disabled");

                 $("#<%= txtHoTen.ClientID %>").removeAttr("disabled");

                 $("#<%= txtDienThoai.ClientID %>").removeAttr("disabled");




             } else {
                 $("#<%= txtDiaChi.ClientID %>").attr("disabled", "true");

                 $("#<%= ddlKhuVuc.ClientID %>").attr("disabled", "true");

                 $("#<%= txtHoTen.ClientID %>").attr("disabled", "true");

                 $("#<%= txtDienThoai.ClientID %>").attr("disabled", "true");


             };
         });

     });
</script>




<div  class="Header"><h3>
	CHỈNH SỬA TIN MUA </h3>
</div>
<div class="Required">
          <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
      </div>
    

		
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblTieude" CssClass="TextLabel" runat="server" Text="Tiêu đề:" /> <span class="fieldRequired">&nbsp;</span>
		</div>
		<div  class="DivTextBox" >
                        <cc1:ValidationTextBox ID="txtTitle" CssClass="TextBox" Width="390px" runat="server" DataType="required" AssociatedLableText="Nhập tiêu đề" />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblNoidung" CssClass="TextLabel" runat="server" Text="Nội dung:" /> <span class="fieldRequired">&nbsp;</span>
		</div>
		<div  class="DivTextBox" >
                        <cc1:ValidationTextBox ID="txtDescription" runat="server" CssClass="TextBox" Height="120px"
                            Rows="5" Text="" TextMode="MultiLine" Width="390px" DataType="required" AssociatedLableText="Nhập tiêu đề"   />
		</div>
		</div>

		
		<div  class="DivLabel">
			<asp:Label ID="lblTinmuaxekhoanggiaid" CssClass="TextLabel" runat="server" Text="Giá:" /> <span class="fieldRequired">&nbsp;</span>
		</div>
		<div  class="DivTextBox" >
	                <cc2:ValidationDropdownlist ID="ddlTinmuaxekhoanggiaid" runat="server" AssociatedLableText="Chọn khoảng giá"  DataType="required"/>
        </div>



           <div style="clear: both; height:5px">
            </div>

                    <div class="DivLabel">
                <asp:Label ID="Label22" CssClass="TextLabel" runat="server" Text="Họ và tên:" /><span
                    class="fieldRequired">&nbsp;</span> </div>
                    <div class="DivTextBox"  >
                <cc1:ValidationTextBox ID="txtHoTen"  AssociatedLableText="họ tên" runat="server" CssClass='TextBox' DataType="required"></cc1:ValidationTextBox>
                </div>
            <div style="clear: both; height:5px">
            </div>


                    <div class="DivLabel">
                  <asp:Label ID="Label23" CssClass="TextLabel" runat="server" Text="Điện thoại:" /><span
                    class="fieldRequired">&nbsp;</span>   </div>
                    <div class="DivTextBox"  style="width: 308px" >
                <cc1:ValidationTextBox ID="txtDienThoai"  AssociatedLableText="điện thoại" runat="server" Width="106px" CssClass='TextBox'
                    DataType="required"></cc1:ValidationTextBox>
                
                    </div>


             <div style="clear: both; height:5px">
            </div>

                    <div class="DivLabel">
                        <asp:Label ID="Label25" CssClass="TextLabel" runat="server" Text="Địa chỉ:" /><span
                            class="fieldRequired">&nbsp;</span>
                    </div>
                    <div class="DivTextBox"   >
                        <cc1:ValidationTextBox ID="txtDiaChi"  AssociatedLableText="địa chỉ" runat="server"  CssClass='TextBox' DataType="required"></cc1:ValidationTextBox>
                    </div>
                <div style="clear: both; height:5px"> </div>
           



                    <div class="DivLabel">
                        <asp:Label ID="Label26" CssClass="TextLabel"  runat="server" Text="Khu vực:" /><span
                            class="fieldRequired">&nbsp;</span>
                    </div>
                    <div class="DivTextBox">
                        <cc2:ValidationDropdownlist ID="ddlKhuVuc" AssociatedLableText="khu vực" runat="server" CssClass='TextBox' Width="163px"
                            DataType="required">
                        </cc2:ValidationDropdownlist>
                    </div>
                    <div style="clear: both; height:5px"> </div>
                <div class="DivRow" style="display:none">
                    <div class="DivLabel">
                        <asp:CheckBox ID="chkThayDoiThongTin" Text="Thay đổi thông tin" runat="server" />
                    </div>
                    <div class="DivTextBox">
                    </div>
                </div>



		<div class="DivRow">
		<div class="DivLabel" >&nbsp;&nbsp;&nbsp;</div>
		<div class="DivTextBox" >
			<asp:Button ID="btnSave" runat="server" Text=" Lưu " CssClass="btn" />
			<asp:Button ID="btnHuy" CausesValidation="false" runat="server" Text=" Hủy " CssClass="btn" />&nbsp;
            <asp:HiddenField ID="hidId" runat="server" Value="0" />
		</div>
		</div>